package com.chinaunicom;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

/**
 * @author: ruiyanglee
 * @date: 2020-09-22 13:56
 * @description:
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableEurekaClient
//启动服务熔断注解
@EnableHystrix
@EnableCircuitBreaker
public class HystrixPay7001 {

    public static void main(String[] args) {
        SpringApplication.run(HystrixPay7001.class, args);
    }
}
